<template>
  <div id="app">

    <!-- 自定义主题色-测试 -->
    <h1>自定义主题色-测试</h1>
    <el-button type="primary">主要按钮</el-button>
    <div class="block">
      <el-slider v-model="value2"></el-slider>
    </div>
    <!-- END -->

    <hr>

    <!-- 主题切换-测试 -->
    <h1>主题切换-测试</h1>
    <div
    :class="[theme]" 
    style="padding:50px">
      我是容器
    </div>
    <button @click="go()">浅色模式</button>
    <button @click="go2()">深色模式</button>
    <!-- END -->

    <!-- <img alt="Vue logo" src="./assets/logo.png"> -->
    <!-- <HelloWorld msg="Welcome to Your Vue.js App"/> -->
  </div>
</template>

<script>
export default {
  name: 'App',
  
  data() {
    return {

      // 默认浅色主题
      theme: 'shallow',
      
      value2: 30//无用(拖动条值)
    }
  },

  methods: {

    go: function()
    {
      this.theme = 'shallow'
    },

    go2: function()
    {
      this.theme = 'deep'
    }
  }
  
}
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
